package com.lizhivscaomei.dueros.tobaccoguider.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * 香烟基础信息(Detail)实体类
 *
 * @author makejava
 * @since 2021-02-26 21:23:29
 */
@Data
@Document(indexName = "detail")
public class Detail implements Serializable {
    private static final long serialVersionUID = 606372252164866388L;
    /**
     * 名称
     */
    @Id
    @Field(analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String name;
    /**
     * 公司
     */
    @Field(analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String company;
    /**
     * 类型
     */
    @Field(analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String type;
    /**
     * 销售价格
     */
    private double priceSale;
    /**
     * 尺寸类型
     */
    @Field(analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String sizeType;

}